<!DOCTYPE html>
<html lang="en" xmlns:th="http://www/thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加菜单</title>
    <script src="/js/jquery-1.7.2.min.js"></script><!--就用元素状态的，不然会加载不了js-->
    <script src="/layui/layui.all.js"></script>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
       <form action="/client/insert" method="post">
      <!--    id :  <input  type="text"  name="id"></br>-->
           <div class="layui-form-item">
               <label class="layui-form-label">菜名:</label>
               <div class="layui-input-block">
                   <input type="text" name="name" required  lay-verify="required" placeholder="请输入菜名" autocomplete="off" class="layui-input" style="width: 200px">
               </div>
           </div>
     </br>
           <div class="layui-form-item">
               <label class="layui-form-label"> 单价：</label>
               <div class="layui-input-block">
                   <input type="text" name="price" required  lay-verify="required" placeholder="请输入单价" autocomplete="off" class="layui-input" style="width: 200px">
               </div>
           </div>
           </br>
           <div class="layui-form-item">
               <label class="layui-form-label">口味：</label>
               <div class="layui-input-block">
                   <input type="text" name="flavor" required  lay-verify="required" placeholder="口味" autocomplete="off" class="layui-input" style="width: 200px">
               </div>
           </div>
           </br>



           <div class="layui-form-item">
               <label class="layui-form-label">类型：</label>
               <div class="layui-input-block">
                   <select name="tid" lay-verify="required" style="width: 200px">
                       <option value="1">热菜</option>
                       <option value="2">凉菜</option>
                       <option value="3">汤羹</option>
                       <option value="4">主食</option>
                       <option value="5">烘焙</option>
                   </select>
               </div>
           </div>
           <div class="layui-form-item">

               <div class="layui-input-block">
           <input class="layui-btn" type="submit" value="添加">
               </div>
           </div>
       </form>
</body>
</html>